package com.wk.pms.feign;

import com.wk.common.bean.Resp;
import com.wk.pms.vo.ItemGroupVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("pms-service")
@RequestMapping("attrgroup")
public interface AttrGroupFeign {


    /**
     * 根据spuid和分类ID查询分类信息及值
     * @param categoryId
     * @param spuId
     * @return
     */
    @GetMapping("item/group/{cid}/{spuId}")
    Resp<List<ItemGroupVO>> queryItemGroupByCategoryIdAndSpuId(@PathVariable(value = "cid") Long categoryId,
                                                               @PathVariable(value = "spuId") Long spuId);

}
